#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
int main()
{
    int n = 0;
    scanf("%d", &n);
    int i = 0;
    int a = 0;
    double ave = 0;
    int count1 = 0;
    int count2 = 0;
    for (i = 0; i < n; i++)
    {
        scanf("%d", &a);
        if (a < 0)
        {
            count1++;
        }
        else if (a > 0)
        {
            ave += a;
            count2++;
        }
    }
    if (count2)
    {
        ave /= count2;
    }
    else
    {
        ave = 0;
    }
    printf("%d %.1f", count1, ave);
    return 0;
}